package com.webBasic;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author:zga
 * @date:2015/11/4
 */
@Configuration
@ComponentScan(basePackages = "com.webBasic")
@EnableAutoConfiguration
public class SimulationAssetApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(SimulationAssetApplication.class);
    }


    public static void main(String[] args) {
        SpringApplication.run(SimulationAssetApplication.class,args);
    }
}
